// samsting : this file is auto create.

#include "Bss/2014-07-14/DescribeCouponListResponse.h"

namespace aliyun { namespace Bss {

DescribeCouponListResponse::DescribeCouponListResponse() {
}

const std::vector<ProductCode>& DescribeCouponListResponse::Coupon::GetProductCodes(void) const {
  return ProductCodes_;
}

const std::vector<TradeType>& DescribeCouponListResponse::Coupon::GetTradeTypes(void) const {
  return TradeTypes_;
}

int64 DescribeCouponListResponse::Coupon::GetCouponTemplateId(void) const {
  return CouponTemplateId_;
}

const string& DescribeCouponListResponse::Coupon::GetTotalAmount(void) const {
  return TotalAmount_;
}

const string& DescribeCouponListResponse::Coupon::GetBalanceAmount(void) const {
  return BalanceAmount_;
}

const string& DescribeCouponListResponse::Coupon::GetFrozenAmount(void) const {
  return FrozenAmount_;
}

const string& DescribeCouponListResponse::Coupon::GetExpiredAmount(void) const {
  return ExpiredAmount_;
}

const string& DescribeCouponListResponse::Coupon::GetDeliveryTime(void) const {
  return DeliveryTime_;
}

const string& DescribeCouponListResponse::Coupon::GetExpiredTime(void) const {
  return ExpiredTime_;
}

const string& DescribeCouponListResponse::Coupon::GetCouponNumber(void) const {
  return CouponNumber_;
}

const string& DescribeCouponListResponse::Coupon::GetStatus(void) const {
  return Status_;
}

const string& DescribeCouponListResponse::Coupon::GetDescription(void) const {
  return Description_;
}

const string& DescribeCouponListResponse::Coupon::GetCreationTime(void) const {
  return CreationTime_;
}

const string& DescribeCouponListResponse::Coupon::GetModificationTime(void) const {
  return ModificationTime_;
}

const string& DescribeCouponListResponse::Coupon::GetPriceLimit(void) const {
  return PriceLimit_;
}

const string& DescribeCouponListResponse::Coupon::GetApplication(void) const {
  return Application_;
}

const std::vector<DescribeCouponListResponse::Coupon>& DescribeCouponListResponse::GetCoupons(void) const {
  return Coupons_;
}

const char* DescribeCouponListResponse::BaseKey(void) {
  return "DescribeCouponListResponse";
}

void DescribeCouponListResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Coupons__length = 0;
  UnmarshallerInt(Coupons__length, response_map, "DescribeCouponListResponse.Coupons.Length");
  if(Coupons__length >= 0) {
    Coupons_.resize(Coupons__length);
    for(int i1 = 0; i1 < Coupons__length; i1++) {
      int Coupons_i1_ProductCodes__length = 0;
      UnmarshallerInt(Coupons_i1_ProductCodes__length, response_map, "DescribeCouponListResponse.Coupons[+"+string_ValueOfInt(i1)+"].ProductCodes.Length");
      if(Coupons_i1_ProductCodes__length >= 0) {
        Coupons_[i1].ProductCodes_.resize(Coupons_i1_ProductCodes__length);
        for(int i2 = 0; i2 < Coupons_i1_ProductCodes__length; i2++) {
          UnmarshallerString(Coupons_[i1].ProductCodes_[i2], response_map, "DescribeCouponListResponse.Coupons[+"+string_ValueOfInt(i1)+"].ProductCodes["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < Coupons_i1_ProductCodes__length; i2++) {
      } // if(Coupons_i1_ProductCodes__length >= 0) {

      int Coupons_i1_TradeTypes__length = 0;
      UnmarshallerInt(Coupons_i1_TradeTypes__length, response_map, "DescribeCouponListResponse.Coupons[+"+string_ValueOfInt(i1)+"].TradeTypes.Length");
      if(Coupons_i1_TradeTypes__length >= 0) {
        Coupons_[i1].TradeTypes_.resize(Coupons_i1_TradeTypes__length);
        for(int i2 = 0; i2 < Coupons_i1_TradeTypes__length; i2++) {
          UnmarshallerString(Coupons_[i1].TradeTypes_[i2], response_map, "DescribeCouponListResponse.Coupons[+"+string_ValueOfInt(i1)+"].TradeTypes["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < Coupons_i1_TradeTypes__length; i2++) {
      } // if(Coupons_i1_TradeTypes__length >= 0) {

      UnmarshallerInt64(Coupons_[i1].CouponTemplateId_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].CouponTemplateId");
      UnmarshallerString(Coupons_[i1].TotalAmount_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].TotalAmount");
      UnmarshallerString(Coupons_[i1].BalanceAmount_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].BalanceAmount");
      UnmarshallerString(Coupons_[i1].FrozenAmount_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].FrozenAmount");
      UnmarshallerString(Coupons_[i1].ExpiredAmount_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].ExpiredAmount");
      UnmarshallerString(Coupons_[i1].DeliveryTime_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].DeliveryTime");
      UnmarshallerString(Coupons_[i1].ExpiredTime_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].ExpiredTime");
      UnmarshallerString(Coupons_[i1].CouponNumber_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].CouponNumber");
      UnmarshallerString(Coupons_[i1].Status_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(Coupons_[i1].Description_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Coupons_[i1].CreationTime_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].CreationTime");
      UnmarshallerString(Coupons_[i1].ModificationTime_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].ModificationTime");
      UnmarshallerString(Coupons_[i1].PriceLimit_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].PriceLimit");
      UnmarshallerString(Coupons_[i1].Application_, response_map, "DescribeCouponListResponse.Coupons["+string_ValueOfInt(i1)+"].Application");
    } // for(int i1 = 0; i1 < Coupons__length; i1++) {
  } // if(Coupons__length >= 0) {

}


} } // namespace aliyun { namespace Bss {

// end of file 
